<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/10
  Time: 19:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="JS/jquery-1.8.3.js"></script>
    <script src="CSS/bootstrap.min.js"></script>
    <link rel="stylesheet" href="CSS/bootstrap.css">
</head>
<body>

<table  class="table table-hover">
<tr>
    <td>主贴编号</td>
    <td>主贴标题</td>
    <td>主贴内容</td>
    <td>发帖人</td>
    <td>发帖时间</td>
    <td>操作</td>
</tr>
    <c:forEach items="${requestScope.topicList}" var="u" varStatus="s">
        <tr>
            <td>${u.pId}</td>
            <td>${u.title}</td>
            <td>${u.context}</td>
            <td>${u.user.uName}</td>
            <td>${u.pTime}</td>
            <td>
                <a>查看回帖</a>
                <a>删除该贴</a>
            </td>
        </tr>
    </c:forEach>
    ${requestScope.result}

</table>



</body>
</html>
